package com.shen.accountbook.bean;

import java.util.List;

/**
 * author:  shen
 * date:    2018/9/10
 *
 * 消费项
 */
public class XSortBean {


    private List<XFirstSortBean> XFirstSort;

    public List<XFirstSortBean> getXFirstSort() {
        return XFirstSort;
    }

    public void setXFirstSort(List<XFirstSortBean> XFirstSort) {
        this.XFirstSort = XFirstSort;
    }

    public static class XFirstSortBean {
        /**
         * id : 1
         * name : 支出
         * XSecondSort : [{"id":1,"name":"生活^吃","XThirdSort":[{"id":1,"name":"早餐"},{"id":2,"name":"午餐"},{"id":3,"name":"晚餐"},{"id":4,"name":"蔬菜鱼肉"},{"id":5,"name":"水果酸奶"},{"id":6,"name":"饮料酒水"},{"id":7,"name":"馋嘴零食"}]},{"id":2,"name":"生活^穿","XThirdSort":[{"id":1,"name":"衣服"},{"id":2,"name":"鞋子"},{"id":3,"name":"帽子"},{"id":4,"name":"宝宝"}]},{"id":3,"name":"生活^住","XThirdSort":[{"id":1,"name":"住宿房租"},{"id":2,"name":"水电气管"},{"id":3,"name":"日用购物"},{"id":4,"name":"上网手机"},{"id":5,"name":"维修保养"}]},{"id":4,"name":"生活^行","XThirdSort":[{"id":1,"name":"地铁公交"},{"id":2,"name":"打车租车"},{"id":3,"name":"共享单车"},{"id":4,"name":"铁航大巴"},{"id":5,"name":"交通其他"}]},{"id":5,"name":"生活^礼","XThirdSort":[{"id":1,"name":"孝敬父母"},{"id":2,"name":"请客吃饭"},{"id":3,"name":"红包礼金"},{"id":4,"name":"赠品送礼"},{"id":5,"name":"慈善捐助"}]},{"id":6,"name":"生活^娱","XThirdSort":[{"id":1,"name":"聚餐吃饭"},{"id":2,"name":"看电影"},{"id":3,"name":"视频vip"},{"id":4,"name":"KTV唱歌"},{"id":5,"name":"腐败玩乐"}]},{"id":7,"name":"生活^学","XThirdSort":[{"id":1,"name":"书籍阅读"},{"id":2,"name":"培训考试"},{"id":3,"name":"资料文印"}]},{"id":8,"name":"生活^医","XThirdSort":[{"id":1,"name":"医疗门诊"},{"id":2,"name":"药品保健"}]},{"id":9,"name":"生活^美","XThirdSort":[{"id":1,"name":"化妆品"},{"id":2,"name":"护肤品"},{"id":3,"name":"理发"},{"id":4,"name":"健身"}]}]
         */

        private int id;
        private String name;
        private List<XSecondSortBean> XSecondSort;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<XSecondSortBean> getXSecondSort() {
            return XSecondSort;
        }

        public void setXSecondSort(List<XSecondSortBean> XSecondSort) {
            this.XSecondSort = XSecondSort;
        }

        public static class XSecondSortBean {
            /**
             * id : 1
             * name : 生活^吃
             * XThirdSort : [{"id":1,"name":"早餐"},{"id":2,"name":"午餐"},{"id":3,"name":"晚餐"},{"id":4,"name":"蔬菜鱼肉"},{"id":5,"name":"水果酸奶"},{"id":6,"name":"饮料酒水"},{"id":7,"name":"馋嘴零食"}]
             */

            private int id;
            private String name;
            private List<XThirdSortBean> XThirdSort;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public List<XThirdSortBean> getXThirdSort() {
                return XThirdSort;
            }

            public void setXThirdSort(List<XThirdSortBean> XThirdSort) {
                this.XThirdSort = XThirdSort;
            }

            public static class XThirdSortBean {
                /**
                 * id : 1
                 * name : 早餐
                 */

                private int id;
                private String name;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                @Override
                public String toString() {
                    return "XThirdSortBean{" +
                            "id=" + id +
                            ", name='" + name + '\'' +
                            '}';
                }
            }

            @Override
            public String toString() {
                return "XSecondSortBean{" +
                        "id=" + id +
                        ", name='" + name + '\'' +
                        ", XThirdSort=" + XThirdSort == null ? "{}" : XThirdSort.toString() +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "XFirstSortBean{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    ", XSecondSort=" + XSecondSort == null ? "{}" : XSecondSort.toString() +
                    '}';
        }
    }
}
